home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / science / ack3d.zip / ACKBKGD.C < prev    next >
Text File  |  1994-01-09  |  1KB  |  44 lines

  1. /******************* ( Animation Construction Kit 3D ) ***********************/
  2. /*              Background Routines                     */
  3. /* CopyRight (c) 1993       Author: Lary Myers                     */
  4. /*****************************************************************************/
  5.  
  6. #include <stdlib.h>
  7. #include <stdio.h>
  8. #include <dos.h>
  9. #include <mem.h>
  10. #include <alloc.h>
  11. #include <io.h>
  12. #include <fcntl.h>
  13. #include <time.h>
  14. #include <string.h>
  15. #include <sys\stat.h>
  16. #include "ack3d.h"
  17. #include "ackeng.h"
  18.  
  19. void AckBuildCeilingFloor(UCHAR far *,int,int,int,int,int,int);
  20.  
  21. /****************************************************************************
  22. ** This routine attempts to build a shaded background. It is not very       **
  23. ** successful and should probably not be used, but it is here for the       **
  24. ** application to use if needed.                       **
  25. **                                       **
  26. ****************************************************************************/
  27. int AckBuildBackground(ACKENG *ae)
  28. {
  29.  
  30. /* Let the assembly routine do all the hard work */
  31.  
  32. AckBuildCeilingFloor(ae->BkgdBuffer,
  33.              ae->LightFlag,
  34.              ae->TopColor,
  35.              ae->BottomColor,
  36.              ae->WinStartY,
  37.              ae->WinEndY,
  38.              ae->CenterRow);
  39.  
  40.  
  41. return(0);
  42. }
  43.  
  44.